package org.itboys.shop.entity;

import java.util.Date;

import org.itboys.mongodb.entity.BaseLongIdEntity;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.NotSaved;

/**
 * 账户
 * @author Administrator
 *
 */
@Entity(value = "Account", noClassnameStored = true)
public class Account extends BaseLongIdEntity{

	private static final long serialVersionUID = -7138682574287464496L;


	private Long userId; //所属用户
	
	private String cardName; //开户人姓名
	
	private String cardBank; //开户行   
	
	private String cardNo; //银行卡号
	
	private Date addTime; //添加时间
	
	private Integer isDeleted; // 0:有效  1：删除
	
	@NotSaved
	private String weihao; //尾号

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getCardBank() {
		return cardBank;
	}

	public void setCardBank(String cardBank) {
		this.cardBank = cardBank;
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public Integer getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Integer isDeleted) {
		this.isDeleted = isDeleted;
	}

	public String getWeihao() {
		return weihao;
	}

	public void setWeihao(String weihao) {
		this.weihao = weihao;
	}
	
	public String getCardName() {
		return cardName;
	}

	public void setCardName(String cardName) {
		this.cardName = cardName;
	}
	
	
}
